package com.bblocks.auth.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bblocks.auth.pojo.entity.Users;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author Mr.Chen
 * @since 2019-07-27
 */
@Repository
public interface UsersMapper extends BaseMapper<Users> {

    boolean insertUser(Users users);

    int selectUserPhone(String userPhone);

	//@Select("select * from ls_user u where u.user_phone=#{userPhone} limit 1")
	Users getByUserPhone(@Param("userPhone") String userPhone);

    //@Select("select * from ls_user u where u.name=#{name}")
    Users getByName(@Param("name") String name);
}
